<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 定义字体，其实是加载外部的字体文件 */
        @font-face {
            /* 自定义字体的名称 */
            font-family: 'myfont' ;
            /* 定义外部字体文件的位置 */
            src: url('font/HYShangWeiShouShuW.ttf');
            /* src: url('font/SourceHanSansCN-Bold.otf'); */
        }
        

        div{
            font-size: 30px;
            font-family: myfont;

        }
    </style>
    <link rel="stylesheet" href="iconfont/iconfont.css">
</head>
<body>
    <div>Web前端开发</div>

    <span class="iconfont icon-xingxing" style="color: green;font-size: 40px;"></span>
    <i class="iconfont icon-shanchu" style="font-size: 30px; color:red"></i>
</body>
</html>